import {WeaTools} from 'ecCom'

export const getKnowledgeDetail = params => {   //根绝knowledgeId 获取页面信息
    return WeaTools.callApi('/api/knowledge/knowledgeMap/getKnowledgeDetail','GET', params);
}

export const operateKnowledge = params => {   //根绝knowledgeId 获取页面信息
    return WeaTools.callApi('/api/knowledge/knowledgeMap/operateKnowledge','POST', params);
}

export const getList = params => {   //获取知识列表
    return WeaTools.callApi('/api/knowledge/knowledgeMap/getList','GET', params);
}
export const getshowModeList = params => {   //显示模板信息
    return WeaTools.callApi('/api/knowledge/knowledgeMap/getshowModeList','GET', params);
}

export const saveMapType = params => {   //保存知识地图类型
    return WeaTools.callApi('/api/knowledge/knowledgeMap/saveMapType','POST', params);
}

